AR  := ar
LD  := ld
GCC := gcc
CCFLAG := -m32 -I../../include -nostdinc -ffreestanding -fno-pic -Wall -fomit-frame-pointer -fno-stack-protector -c
OBJS   := hd.o ll_rw_blk.o floppy.o

blk_drv.a : $(OBJS)
		$(AR) rcs $@ $^
		sync

hd.o : hd.c
		$(GCC) $(CCFLAG) -o $@ $<

ll_rw_blk.o : ll_rw_blk.c
		$(GCC) $(CCFLAG) -o $@ $<

floppy.o : floppy.c
		$(GCC) $(CCFLAG) -o $@ $<

clean : 
		-rm *.o
		-rm blk_drv.a

